home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
source
/
gfxfx
/
switch.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1994-04-21
|
574b
|
36 lines
program switch;
{ Switching without clearing test, by Bas van Gaalen, Holland, PD }
uses crt;
var key:char;
procedure _25lines; assembler;
asm
mov ax,83h
int 10h
end;
procedure _50lines; assembler;
asm
mov ax,1202h
mov bl,30h
int 10h
mov ax,1112h
mov bl,0
int 10h
end;
begin
writeln;
writeln(' 0 - quit');
writeln(' 1 - 25 lines mode');
writeln(' 2 - 50 lines mode');
repeat
key:=readkey; if key=#0 then key:=readkey;
case key of
'1':_25lines;
'2':_50lines;
end;
until key='0';
end.